package edu.gyc.mytest;

import javax.swing.*;
import java.util.Random;

public class HiSwing {
    public static void main(String[] args) {
        JFrame frame=new JFrame("Hi");
        HiPanel panel=new HiPanel();
        frame.setContentPane(panel );
        frame.setSize(800,600);
        frame.setVisible(true);
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Thread paintThread = new Thread(panel);
        paintThread.start();


    }
}
